﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DataAccessTier;
using DTO;

namespace BusinessLogicTier
{
    public class LoaiHangHoaBUG
    {
        LoaiHangHoaDAO objLHH = new LoaiHangHoaDAO();
        public DataTable GetLHH()
        {
            return objLHH.GetAllLoaiHangHoa();
        }

        public bool kiemtranmaloaihh(string maloaihh)
        {
            return objLHH.kiemtratontai(maloaihh);
        }

        public bool Insert(LoaiHangHoa loaihh)
        {
            return objLHH.Insert(loaihh);
        }

        public bool Delete(string maloaihh)
        {
            return objLHH.Delete(maloaihh);
        }

        public bool kiemtratontaiHH(string maloaihh)
        {
            return objLHH.kiemtratontaiHH(maloaihh);
        }

        public bool DeleteHH(string maloaihh)
        {
            return objLHH.DeleteHH(maloaihh);
        }

        public bool Update(LoaiHangHoa loaihh)
        {
            return objLHH.Update(loaihh);
        }
    }
}
